\(\int \frac {\sin (x)}{(1-\cos (x))^3} \, dx\) [19]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [A] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 11, antiderivative size = 12 \[ \int \frac {\sin (x)}{(1-\cos (x))^3} \, dx=-\frac {1}{2 (1-\cos (x))^2} \]

[Out]

-1/2/(1-cos(x))^2

Rubi [A] (verified)

Time = 0.02 (sec) , antiderivative size = 12, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {2746, 32} \[ \int \frac {\sin (x)}{(1-\cos (x))^3} \, dx=-\frac {1}{2 (1-\cos (x))^2} \]

[In]

Int[Sin[x]/(1 - Cos[x])^3,x]

[Out]

-1/2*1/(1 - Cos[x])^2

Rule 32

Int[((a_.) + (b_.)*(x_))^(m_), x_Symbol] :> Simp[(a + b*x)^(m + 1)/(b*(m + 1)), x] /; FreeQ[{a, b, m}, x] && N
eQ[m, -1]

Rule 2746

Int[cos[(e_.) + (f_.)*(x_)]^(p_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.), x_Symbol] :> Dist[1/(b^p*f), S
ubst[Int[(a + x)^(m + (p - 1)/2)*(a - x)^((p - 1)/2), x], x, b*Sin[e + f*x]], x] /; FreeQ[{a, b, e, f, m}, x]
&& IntegerQ[(p - 1)/2] && EqQ[a^2 - b^2, 0] && (GeQ[p, -1] ||  !IntegerQ[m + 1/2])

Rubi steps \begin{align*} \text {integral}& = \text {Subst}\left (\int \frac {1}{(1+x)^3} \, dx,x,-\cos (x)\right ) \\ & = -\frac {1}{2 (1-\cos (x))^2} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.01 (sec) , antiderivative size = 12, normalized size of antiderivative = 1.00 \[ \int \frac {\sin (x)}{(1-\cos (x))^3} \, dx=-\frac {1}{8} \csc ^4\left (\frac {x}{2}\right ) \]

[In]

Integrate[Sin[x]/(1 - Cos[x])^3,x]

[Out]

-1/8*Csc[x/2]^4

Maple [A] (verified)

Time = 0.43 (sec) , antiderivative size = 11, normalized size of antiderivative = 0.92

method result size
derivativedivides \(-\frac {1}{2 \left (1-\cos \left (x \right )\right )^{2}}\) \(11\)
default \(-\frac {1}{2 \left (1-\cos \left (x \right )\right )^{2}}\) \(11\)
risch \(-\frac {2 \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{i x}-1\right )^{4}}\) \(17\)
parallelrisch \(-\frac {\left (\cot ^{2}\left (\frac {x}{2}\right )\right ) \left (\cot ^{2}\left (\frac {x}{2}\right )+2\right )}{8}\) \(17\)
norman \(\frac {-\frac {\left (\tan ^{5}\left (\frac {x}{2}\right )\right )}{4}-\frac {3 \left (\tan ^{3}\left (\frac {x}{2}\right )\right )}{8}-\frac {\tan \left (\frac {x}{2}\right )}{8}}{\left (1+\tan ^{2}\left (\frac {x}{2}\right )\right ) \tan \left (\frac {x}{2}\right )^{5}}\) \(41\)

[In]

int(sin(x)/(1-cos(x))^3,x,method=_RETURNVERBOSE)

[Out]

-1/2/(1-cos(x))^2

Fricas [A] (verification not implemented)

none

Time = 0.24 (sec) , antiderivative size = 14, normalized size of antiderivative = 1.17 \[ \int \frac {\sin (x)}{(1-\cos (x))^3} \, dx=-\frac {1}{2 \, {\left (\cos \left (x\right )^{2} - 2 \, \cos \left (x\right ) + 1\right )}} \]

[In]

integrate(sin(x)/(1-cos(x))^3,x, algorithm="fricas")

[Out]

-1/2/(cos(x)^2 - 2*cos(x) + 1)

Sympy [A] (verification not implemented)

Time = 0.24 (sec) , antiderivative size = 15, normalized size of antiderivative = 1.25 \[ \int \frac {\sin (x)}{(1-\cos (x))^3} \, dx=- \frac {1}{2 \cos ^{2}{\left (x \right )} - 4 \cos {\left (x \right )} + 2} \]

[In]

integrate(sin(x)/(1-cos(x))**3,x)

[Out]

-1/(2*cos(x)**2 - 4*cos(x) + 2)

Maxima [A] (verification not implemented)

none

Time = 0.21 (sec) , antiderivative size = 8, normalized size of antiderivative = 0.67 \[ \int \frac {\sin (x)}{(1-\cos (x))^3} \, dx=-\frac {1}{2 \, {\left (\cos \left (x\right ) - 1\right )}^{2}} \]

[In]

integrate(sin(x)/(1-cos(x))^3,x, algorithm="maxima")

[Out]

-1/2/(cos(x) - 1)^2

Giac [A] (verification not implemented)

none

Time = 0.26 (sec) , antiderivative size = 8, normalized size of antiderivative = 0.67 \[ \int \frac {\sin (x)}{(1-\cos (x))^3} \, dx=-\frac {1}{2 \, {\left (\cos \left (x\right ) - 1\right )}^{2}} \]

[In]

integrate(sin(x)/(1-cos(x))^3,x, algorithm="giac")

[Out]

-1/2/(cos(x) - 1)^2

Mupad [B] (verification not implemented)

Time = 12.95 (sec) , antiderivative size = 8, normalized size of antiderivative = 0.67 \[ \int \frac {\sin (x)}{(1-\cos (x))^3} \, dx=-\frac {1}{2\,{\left (\cos \left (x\right )-1\right )}^2} \]

[In]

int(-sin(x)/(cos(x) - 1)^3,x)

[Out]

-1/(2*(cos(x) - 1)^2)